﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;

namespace BusinessObject
{
    public class ClassBO
    {
        private List<Classs> classes;

        public ClassBO(List<Classs> manager)
        {
            this.classes = manager;
        }

        public List<Classs> Classes
        {
            get { return this.classes; }
            set { this.classes = value; }
        }

        public void AddClass(Classs classs)
        {
            if (classs == null)
            {
                throw new ArgumentNullException("Classs");
            }

            Classes.Add(classs);
        }

        public void RemoveClass(Classs classs)
        {
            if (classs == null)
            {
                throw new ArgumentNullException("Class");
            }
            Classes.Remove(classs);
        }
    }
}
